package com.sheng.sign.service;

import java.util.List;

import com.sheng.sign.dao.StudentDao;
import com.sheng.sign.entity.Student;

public class StudentServiceImpl implements StudentService {

	private StudentDao studentDao;


	@Override
	public boolean add(Student student) {
		System.out.println("==来到了serviceImpl=="+student);
		return studentDao.add(student);

	}

	@Override
	public boolean edit(Student student) {
		System.out.println("==来到了serviceImpl==准备update进去的值"+student.getId()+"==");
		return studentDao.edit(student);
	}

	@Override
	public boolean delete(Student student) {
		System.out.println("==来到了serviceImpl=="+student);
		return studentDao.delete(student);
	}

	@Override
	public List<Student> findAllList() {
		return studentDao.findAllList();
	}

	@Override
	public Student findById(Student student) {
		 return studentDao.findById(student);
	}

	public StudentDao getStudentDao() {
		return studentDao;
	}

	public void setStudentDao(StudentDao studentDao) {
		this.studentDao = studentDao;
	}

	@Override
	public List<Student> listByClass(Student student) {
		return studentDao.listByClass(student);
	}


}
